package com.framework.service.impl;

import java.util.List;
import java.util.Set;

import com.framework.core.myannotation.MyAutowire;
import com.framework.core.myannotation.MyService;
import com.framework.domain.UserInformation;
import com.framework.mapper.LoginRigisterMapper;
import com.framework.service.LoginRegisterService;

@MyService
public class LoginRegisterServiceImpl implements LoginRegisterService {

	@MyAutowire
	private LoginRigisterMapper loginRigisterMapper;

	@Override
	public UserInformation login(String userName, String userPwd) {
		
		return loginRigisterMapper.selectOne(userName,userPwd);
	}

	@Override
	public List<UserInformation> list() {
		
		return loginRigisterMapper.selectlist();
	}

	@Override
	public Set<String> set() {
		return loginRigisterMapper.selectSet();
	}

	@Override
	public String selectString(String pwd) {
		return loginRigisterMapper.s(pwd);
	}

	@Override
	public Long selectLong(String pwd) {
		return loginRigisterMapper.i(pwd);
	}

}
